package com.burstly.lib.component.networkcomponent.burstly.html;

import android.content.Context;
import android.webkit.WebViewClient;
import com.burstly.lib.component.AbstractAdaptor.AdaptorListenerWrapper;
import com.burstly.lib.component.networkcomponent.burstly.html.ormma.OrmmaView;
import com.burstly.lib.network.beans.RequestData;
import com.burstly.lib.network.beans.ResponseBean.ResponseData;
import com.burstly.lib.util.Utils;
import java.util.Map;

class OrmmaBurstlyScriptAdaptor extends BurstlyBaseScriptAdaptor
{
  OrmmaBurstlyScriptAdaptor(Context paramContext, String paramString)
  {
    super(paramContext, paramString);
  }

  protected void checkParameters(Map<String, ?> paramMap)
    throws IllegalArgumentException
  {
    super.checkParameters(paramMap);
    this.mUrlProvider.setUrl(null);
    Utils.checkNotNull(this.mScriptContent, "Rich media script content is null");
  }

  protected IRichMediaAdListener createMediaListener(StatisticsSender paramStatisticsSender)
  {
    RedirectClickListener localRedirectClickListener = new RedirectClickListener((AbstractAdaptor.AdaptorListenerWrapper)getAdaptorListener(), "burstlyScript", isFullscreen(), this.mUrlProvider);
    localRedirectClickListener.setRichMediaListener(new SimpleRichMediaListener(getAdaptorListener(), "burstlyScript", paramStatisticsSender));
    return localRedirectClickListener;
  }

  protected StatisticsSender createStatisticsSender()
  {
    StatisticsSender.StatisticsSenderBuilder localStatisticsSenderBuilder = new StatisticsSender.StatisticsSenderBuilder();
    localStatisticsSenderBuilder.setBurstlyViewId(getViewId()).setCreativeId(getResponseData().getCrid().toString()).setEventType("ormma").setZoneId(getRequestData().getZone());
    return localStatisticsSenderBuilder.build();
  }

  public void ormmaViewCreated(OrmmaView paramOrmmaView)
  {
    super.ormmaViewCreated(paramOrmmaView);
    IRichMediaAdListener localIRichMediaAdListener = createMediaListener(createStatisticsSender());
    paramOrmmaView.setListener(localIRichMediaAdListener);
    paramOrmmaView.setWebViewClient((WebViewClient)localIRichMediaAdListener);
    paramOrmmaView.requestFocus(130);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.OrmmaBurstlyScriptAdaptor
 * JD-Core Version:    0.6.2
 */